<template>
	<view class="p20">
		<view class="bg-fff radius20 pl20 pr20">
			<view class="flex pt32 pb32 border-b" v-if="$user[item.fidle]" v-for="(item,index) in list" :key="index">
				<view class="color-666 ">{{item.name}}</view>
				<view class="tr flex1">{{$user[item.fidle]}}</view>
			</view>
			<view class="fw-w pt32 pb32"  v-if="$user.card_pros_img">证件照：</view>
			<view class="flex row-around pb32" v-if="$user.card_pros_img">
				<image :src="$user.card_pros_img" @click="$tool.lookImg([$user.card_pros_img])" class="w280 h160" mode="aspectFill"></image>
				<image :src="$user.card_cons_img" @click="$tool.lookImg([$user.card_cons_img])" class="w280 h160" mode="aspectFill"></image>
			</view>
			<block v-if="$user.license_img">
				<view class="fw-w pt32 pb32">营业执照：</view>
				<view class="flex row-around pb32">
					<image :src="$user.license_img" @click="$tool.lookImg([$user.license_img])" class="w280 h160" mode="aspectFill"></image>
				</view>
			</block>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					name: '姓名',
					fidle: 'name'
				}, {
					name: '身份证号',
					fidle: 'card_no'
				}, {
					name: '手机号码',
					fidle: 'mobile'
				}, {
					name: '护龄',
					fidle: 'service_year'
				},  ]
			};
		}
	}
</script>

<style lang="scss">
page{
	background: #F8F8F8;
}
</style>
